package com.chuangke.elasticsearch.model;

public class ElasticEntity<T> {
	/**
	 * 主键标识，用户ES持久化
	 */
	private String id;

	/**
	 * JSON对象，实际存储数据
	 */
	private T data;

	public ElasticEntity() {
	}

	public ElasticEntity(String id, T data) {
		this.id = id;
		this.data = data;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
